package yto.freemarker.springcloud.config;

import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author dongxing
 * @create 2018-01-16 10:47
 **/
@Configuration
public class Configuration2 {
    /**
     * Eureka的账号和密码
     *
     * @return
     */
    @Bean
    public BasicAuthRequestInterceptor basicAuthRequestInterceptor() {
        return new BasicAuthRequestInterceptor("admin", "123456");
    }

    /**
     * 单个禁用hystrix的案列
     *
     * @return
     */
//    @Bean
//    @Scope("prototype")
//    public Feign.Builder feignBuilder() {
//        return Feign.builder();
//    }

}
